package top.dancun.eascourse.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import top.dancun.common.utils.R;
import top.dancun.eascourse.config.FeignConfig;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 *
 * @author : dancun
 * @date 2022/10/23 9:26
 */
@Component
@FeignClient(value = "EAS-teacher" ,configuration = FeignConfig.class)
public interface TeacherFeign {

    @PostMapping("/easteacher/teacher/listbyids")
//    @RequiresPermissions("easteacher:teacher:list")
    public R listByIds(@RequestBody List<String> ids);

}
